package com.lqd.mall.system.repository;

import com.lqd.mall.interaction.system.SysDictDataEntity;
import com.lqd.mall.jpa.repository.BaseRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

/**
 * @author 零起点
 * @create 2022-03-20 22:02
 */
public interface SysDictDataRepository extends BaseRepository<SysDictDataEntity,Long> {

    @Modifying
    @Query("update SysDictDataEntity set dictType = :newValue where dictType =  :oldValue")
    Integer upateDictType(String oldValue, String newValue);
}
